package cn.miao.hrm.service;

import cn.miao.hrm.domain.Login;
import cn.miao.hrm.dto.LoginAgencyDto;
import cn.miao.util.AjaxResult;
import com.baomidou.mybatisplus.service.IService;

import java.util.Map;

/**
 * <p>
 * 登录表 服务类
 * </p>
 *
 * @author MiaoDaWei
 * @since 2021-11-22
 */
public interface ILoginService extends IService<Login> {

    AjaxResult saveLoginAndRole(LoginAgencyDto dto);

    AjaxResult login(Map<String, String> map);

    AjaxResult refresh(String refreshToken, Integer type);
}
